import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/riskyf'
// 一键挂起
export const setSwitch = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/set-switch-pending',
    method: 'post',
    data
  })
// 开关挂起-重试
export const batchRetrySwitch = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/batch-retry-switch-pending',
    method: 'post',
    data
  })
// 异常挂起-重试
export const batchRetry = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/batch-retry-pending',
    method: 'post',
    data
  })
// 人工审核-
export const batchManual = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/batch-manual-approval',
    method: 'post',
    data
  })
// 获取状态
export const getSwitch = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/get-switch-pending-val',
    method: 'post',
    data
  })
// 业务来源下拉选择数据源
export const getSourceList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-source/list',
    method: 'post',
    data
  })
// 获取进件列表
export const getRiskList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/list',
    method: 'post',
    data
  })

// 详情界面
export const getdetailData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/detail-info',
    method: 'post',
    data
  })
// 详情-用户基本资料
export const getuserData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/user-base-info',
    method: 'post',
    data
  })
// 详情-贷款历史
export const getloanData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/user-loan-info',
    method: 'post',
    data
  })
// 详情-用户详细信息
export const getuesrdetailData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/user-detail-info',
    method: 'post',
    data
  })
// 详情-规则检测
export const getcheckedData = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/checked-rules',
    method: 'post',
    data
  })
// 详情-身份识别
export const idCard = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/id-card-info',
    method: 'post',
    data
  })
// 详情-活体信息
export const bodyInfo = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/living-body-info',
    method: 'post',
    data
  })
// 详情-设备信息
export const equipmentInfo = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/equipment-info',
    method: 'post',
    data
  })
// 详情-设备通讯录
export const deviceContacts = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/device-contacts',
    method: 'post',
    data
  })
// 详情-设备应用
export const deviceApps = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/device-apps',
    method: 'post',
    data
  })
// 详情-设备
export const deviceLocation = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/std/apply-risk/device-location',
    method: 'post',
    data
  })
// 操作
// export const edit = (data?: any) =>
//   request({
//     baseURL: baseUrl,
//     url: '/std/approval/edit',
//     method: 'post',
//     data
//   })
